package com.chinasoft.rentalservice.service;

import com.chinasoft.ms.dto.RentalDTO;
import com.chinasoft.ms.dto.RentalRecordDTO;
import com.chinasoft.ms.pojo.PageItem;
import com.chinasoft.ms.pojo.Rental;

import java.util.List;

public interface RentalService {
    PageItem<RentalRecordDTO> queryByPageCond(Integer pageNum, Integer pageSize, RentalRecordDTO query);
    boolean addRental(RentalRecordDTO rentalDTO);
    boolean updateRental(RentalRecordDTO rentalDTO);
    boolean deleteRental(Long id);
    boolean deleteBatch(List<Long> ids);
    RentalRecordDTO getRentalByCarId(Long carId);

    public boolean updateStatus(Long id, String status);

    RentalDTO getRentalById(Long rentalId);

    Rental QueryByCarId(Long carId);


    public RentalRecordDTO getRental2ByCarId(Long carId);
}
